﻿using System;
using System.Xml.Serialization;
using System.Collections;

namespace TheLogWatcher
{
    /// <summary>
    ///     Specifies what log format type to use with what format property.
    /// </summary>
    public class FormatSettingsType
    {
        public FormatSettingsType()
        {
        }

        public FormatSettingsType(string name, int x, int y, string text)
        {
            this.Name = name;
            this.X = x;
            this.Y = y;
            this.Text = text;
        }

        /// <summary>
        ///     Unique name of the format type. E.g. "Hour", "Minute" (acts as ID).
        /// </summary>
        [XmlElementAttribute("Name")]
        public string Name;

        /// <summary>
        ///     The current x-position of the format type selection block.
        /// </summary>
        [XmlElementAttribute("X")]
        public int X;

        /// <summary>
        ///     The current y-position of the format type selection block.
        /// </summary>
        [XmlElementAttribute("Y")]
        public int Y;

        /// <summary>
        ///     The ID of the active property.
        /// </summary>
        [XmlElementAttribute("PropertyID")]
        public int PropertyID;

        /// <summary>
        ///     The saved text that will be inserted as separator.
        /// </summary>
        [XmlElementAttribute("Text")]
        public string Text;
    }
}
